]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
telepathyClient: don't notify for delivery reports
authorJonny Lamb <jonnylamb@gnome.org>
Thu, 5 May 2011 12:19:59 +0000 (13:19 +0100)
committerJonny Lamb <jonnylamb@gnome.org>
Thu, 12 May 2011 10:28:43 +0000 (11:28 +0100)
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
js/ui/telepathyClient.js

index 5e3f33c972b7b9c6562d127962d8022d1b431f62..cee808242d0a8a8accc8c8fc01c068fb0bc2e2c6 100644 (file)
@@ -289,6 +289,9 @@ Source.prototype = {
     },
 
     _messageReceived: function(channel, message) {
+        if (message.get_message_type() == Tp.ChannelTextMessageType.DELIVERY_REPORT)
+            return;
+
         message = makeMessageFromTpMessage(message, NotificationDirection.RECEIVED);
         this._notification.appendMessage(message);
         this.notify();